UNPKG

@medusajs/medusa

Version:

Building blocks for digital commerce

15 lines 496 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.POST = void 0; const core_flows_1 = require("@medusajs/core-flows"); const POST = async (req, res) => { const { id } = req.params; const { result } = await (0, core_flows_1.createOrderEditShippingMethodWorkflow)(req.scope).run({ input: { ...req.validatedBody, order_id: id }, }); res.json({ order_preview: result, }); }; exports.POST = POST; //# sourceMappingURL=route.js.map